#include <vector>
#include <iostream>
#include <algorithm> // find_if
#include <sstream> // stringstream

using  namespace std;

class Bank {
private:
    vector<long long> balance;

public:
    Bank(vector<long long>& balance) : balance(balance) {}

    bool transfer(int account1, int account2, long long money) {
        if (account1 > balance.size() || account2 > balance.size() || balance[account1 - 1] < money) {
            return false;
        }
        balance[account1 - 1] -= money;
        balance[account2 - 1] += money;
        return true;
    }

    bool deposit(int account, long long money) {
        if (account > balance.size()) {
            return false;
        }
        balance[account - 1] += money;
        return true;
    }

    bool withdraw(int account, long long money)  {
        if (account > balance.size() || balance[account - 1] < money) {
            return false;
        }
        balance[account - 1] -= money;
        return true;
    }
};


// ////////////////////////////////  输入  /////////////////////////////////////////////

void trimLeftTrailingSpaces(string &input) {
    input.erase(input.begin(), find_if(input.begin(), input.end(), [](int ch) {
        return !isspace(ch);
    }));
}

void trimRightTrailingSpaces(string &input) {
    input.erase(find_if(input.rbegin(), input.rend(), [](int ch) {
        return !isspace(ch);
    }).base(), input.end());
}


vector<int> stringToIntegerVector(string input) {
    vector<int> output;
    // 左边空格
    trimLeftTrailingSpaces(input);
    // 右边空格
    trimRightTrailingSpaces(input);
    // [] 去掉第一个[和最后 一个]
    input = input.substr(1, input.length() - 2);
    stringstream ss;
    ss.str(input);
    string item;
    char delim = ',';
    while (getline(ss, item, delim)) {
        output.push_back(stoi(item));
    }
    return output;
}

vector<string> stringToStringVector(string input) {
    vector<string> output;
    // 左边空格
    trimLeftTrailingSpaces(input);
    // 右边空格
    trimRightTrailingSpaces(input);
    // [] 去掉第一个[和最后 一个]
    input = input.substr(1, input.length() - 2);
    stringstream ss;
    ss.str(input);
    string item;
    char delim = ',';
    while (getline(ss, item, delim)) {
        output.push_back(item);
    }
    return output;
}


vector<vector<int>> stringTo2dIntegerVector(string input2d) {
    vector<vector<int>> output2d;
    // 左边空格
    trimLeftTrailingSpaces(input2d);
    // 右边空格
    trimRightTrailingSpaces(input2d);
    // [] 去掉第一个[和最后 一个]
    input2d = input2d.substr(1, input2d.length() - 2);
    // 以,分割为向量
    vector<string> string1dVector = stringToStringVector(input2d);
    // 遍历转换为一维度整形向量
    for (string s : string1dVector) {
        vector<int> integer1dVector = stringToIntegerVector(s);
        output2d.push_back(integer1dVector);
    }

    return output2d;
}


string integerVectorToString(vector<int> list, int length = -1) {
    if (length == -1) {
        length = list.size();
    }

    if (length == 0) {
        return "[]";
    }

    string result;
    for(int index = 0; index < length; index++) {
        int number = list[index];
        result += to_string(number) + ", ";
    }
    return "[" + result.substr(0, result.length() - 2) + "]";
}

string stringVectorToString(vector<string> list, int length = -1) {
    if (length == -1) {
        length = list.size();
    }

    if (length == 0) {
        return "[]";
    }

    string result;
    for(int index = 0; index < length; index++) {
        string numberString = list[index];
        result += numberString + ", ";
    }
    return "[" + result.substr(0, result.length() - 2) + "]";
}

int main() {
    string line;
    while (getline(cin, line)) {
        // 命令的一维向量
        // ["Bank", "withdraw", "transfer", "deposit", "transfer", "withdraw"]
        vector<string> command = stringToStringVector(line);
        // 二维金额 // 怎么处理3维的呢？？
        // [[[10, 100, 20, 50, 30]], [3, 10], [5, 1, 20], [5, 20], [3, 4, 15], [10, 50]]
        getline(cin, line);
        vector<vector<int>> bank2dInteger = stringTo2dIntegerVector(line);

        // 输出一维字符型向量
        cout << stringVectorToString(command) << endl;
        // 输出二维整型向量......???

    }
}
